package org.mags.dao.common;

import java.io.Serializable;

public class Attribute implements Serializable {
	private Object type;
	private Object value;
	private String name;
	
	@Override
	public String toString() {
		String _name = name;
		if(_name==null)_name = "null";
		String _value = (String)value;
		if(_value==null)_value = "null";
		String _type = (String)type;
		if(_type==null)_type = "null";
		return "[name: "+_name + ", value: " + _value + ", type: " + _type + "]";
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	public Attribute(String name, Object value) {
		this.name = name;
		this.value = value;
	}
	public Attribute(String name, Object value, Object type) {
		this.name = name;
		this.type = type;
		this.value = value;
	}
	
	public Object getType() {
		return type;
	}

	public void setType(Object type) {
		this.type = type;
	}
}
